import request from '@/utils/request'
// 获取设备分类
export function getCountEquipmentCategory() {
    return request({
      url: '/equipment/category/getCountEquipmentCategory',
      method: 'get'
    })
  }
  
  // 获取设备综合数据
export function getBoardEquipment() {
    return request({
      url: '/equipment/info/getBoardEquipment',
      method: 'get'
    })
  }
    // 获取任务综合数据
export function getBoardTask() {
    return request({
      url: '/technology/technologyWorking/getBoardTask',
      method: 'get'
    })
  }
  // 实时报警
export function getBoardAlarmEquipment(query){
  return request({
    url: '/equipment/alarmData/getBoardAlarmEquipment',
    method: 'get',
    params: query
  })
}
    // 利用率
    export function getEquipmentAvailability(time) {
      return request({
        url: '/equipment/availability/getEquipmentAvailability/'+time[0]+'/'+time[1],
        method: 'get'
      })
    }